home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2691 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  757 b 

  1. Path: news.nevada.edu!aronoffs
  2. From: aronoffs@nevada.edu (STEVEN ARONOFF)
  3. Newsgroups: comp.lang.c
  4. Subject: Help Learning C
  5. Date: 23 Jan 1996 02:17:03 GMT
  6. Organization: University of Nevada System Computing Services
  7. Message-ID: <4e1gev$3gv@news.nevada.edu>
  8. NNTP-Posting-Host: unauthenticated_user@pioneer.nevada.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Here is a simple idea!
  12. copy the one file with the list.
  13.  
  14. Take the list one at a time while loop to strcmp the other file fgets the 
  15. whole thing looking for a match. If match found mark line for delete.
  16. after first list has been gone through then fgets and fputs NOT lines 
  17. match found to newfile. 
  18. Keep original file with list as file.old just in case of mess-ups
  19.  
  20. Please excuse the engpramming language.
  21.